
package com.yonyou.cyxdms.sysAuth.service.service.areaService.impl;

import com.yonyou.cyxdms.sysAuth.service.dto.OrgDTO;
import com.yonyou.cyxdms.sysAuth.service.dto.area.AreaDTO;

import com.yonyou.cyxdms.sysAuth.service.dto.area.AttachAreaDTO;
import com.yonyou.cyxdms.sysAuth.service.dto.area.OrgNameDTO;
import com.yonyou.cyxdms.sysAuth.service.entity.OrgPO;
import com.yonyou.cyxdms.sysAuth.service.mapper.OrgMapper;
import com.yonyou.cyxdms.sysAuth.service.service.areaService.DealerAttchAreaservice;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DealerAttchAreaservicelmpl implements DealerAttchAreaservice {
    @Autowired
   private OrgMapper orgMapper;
    @Override
    public List<AreaDTO> getOrgByOrgType4cms(List<String> orgType) {
//        for(int a =0 ; a< orgType.length;a++){
//          String bb = orgType[a]
//        }
      return orgMapper.select(orgType);

    }

    @Override
    public List<AttachAreaDTO> selecOrgName(Long orgId) {

        List<AttachAreaDTO> attachAreaDTOS = orgMapper.selectorgName(orgId);

        return attachAreaDTOS;
    }


}
